<?php

use Illuminate\Http\Request;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

Route::middleware('auth:api')->get('/user', function (Request $request) {
    return $request->user();
});
//七牛云上传
//Route::post('up','UploadController@uploadpicture');
//又拍云上传
Route::post('up','UploadController@uploadYoupaiPicture');
//又拍云上传
Route::post('upFile','UploadController@uploadYoupaiFile');
//服务器状态
Route::get('systemTotal','SystemController@systemTotal');
//又拍云内容审核回调
Route::post('ypban','PictureBanController@ypBan');
//又拍云文字审核接口
//Route::post('upyunString','upyunStringController@checkString');

//以下功能仅供测试，正式使用请注释掉
//Redis数据监控
//Route::get('redis','PictureBanController@redis');
//Route::get('redisdel',function (){
//    \Redis::flushdb();
//});

